home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / Tools & Goodies / More View Resources / Radio Groups / Views.fr < prev   
Encoding:
Text File  |  1996-04-22  |  18.2 KB  |  600 lines  |  [TEXT/CWIE]

  1. //========================================================================================
  2. //    File:                Views.fr
  3. //    Release Version:    $ ODF 1 $
  4. //
  5. //    Contains:            Resources defining the Form part's views
  6. //
  7. //    Copyright:            (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  8. //========================================================================================
  9.  
  10. #ifndef FWRESFIL_K
  11. #include "FWResFil.k"
  12. #endif
  13.  
  14. #ifndef FWVIEWS_FR
  15. #include "FWViews.fr"
  16. #endif
  17.  
  18. #ifndef FWNOTDEF_H
  19. #include "FWNotDef.h"     
  20. #endif
  21.  
  22. #ifndef DEFINES_K
  23. #include "Defines.k"
  24. #endif
  25.  
  26. //========================================================================================
  27. // Defines
  28. //========================================================================================
  29.  
  30. // H & V are reference size for the Form frame.
  31. // Their values are not important because all the views will be resized at runtime 
  32. // to adjust to the real frame size defined by the part. What is important is the 
  33. // placement of the subviews relative to this reference size and their binding flags.
  34. // Note: in this example the bounds & bindings of RFormView, the content view, are not 
  35. // important either because the frame takes care of it in CFormView::CenterInFrame() 
  36.  
  37. #define H    FW_FIX(600)
  38. #define V    FW_FIX(1000)
  39.  
  40. #define H1    H + FW_FIX(1)
  41. #define V1    V + FW_FIX(1)
  42.  
  43. // Fonts not defined in "FWViews.fr"
  44. #define TIMES_12_BOLD        { FW_FIX(12), FW_kBold, "Times" }
  45.  
  46. //========================================================================================
  47. // type RRadioGroup
  48. //========================================================================================
  49. // This resource type didn't make it in ODF release 1 but can be used to create group of
  50. // radio buttons more easily.  See how it is used below in the new version of Form.
  51.  
  52. type RRadioGroup : FW_RSuperView(Label='rgrp')
  53. {
  54.     FW_RRadioCluster;
  55. };
  56.  
  57. //========================================================================================
  58. // type RFormView
  59. //========================================================================================
  60. // In this new version of Form the RFormView type doesn't include radio-clusters because
  61. // we use RRadioGroup instead
  62.  
  63. type RFormView : FW_RSuperView(Label='Frmv')
  64. {
  65. };
  66.  
  67. //========================================================================================
  68. // type RScrollEdit
  69. //========================================================================================
  70. // Custom scrolling edit view 
  71.  
  72. type RScrollEdit : FW_REditView(Label='Sedv')
  73. {
  74. HorizViewID:
  75.     longint;            // Horizontal scrollbar id, or 0 for no scrollbar
  76. VertViewID:
  77.     longint;            // Vertical scrollbar id, or 0 for no scrollbar
  78. TextWidth:
  79.     FW_RFixed;            // text width (or 0 to use same width as view)
  80. };
  81.  
  82. //========================================================================================
  83. // resource RFormFrame(kFormView)
  84. //========================================================================================
  85. // See constants in "FWViews.k", macros & resource types in "FWViews.fr"
  86.  
  87. resource FW_RFrameLayout(kFormView)
  88. {
  89.     {H,V},                    // LayoutSize
  90.     {                        // Start list of frame's subviews
  91.         RFormView
  92.         (
  93.             kFormViewID,                // view id
  94.             {0, 0, H, V},                // bounds
  95.             FW_kFitToEnclosure,            // bindings
  96.             {FW_FIX(560),FW_FIX(800)},    // extent
  97.             1,                            // Make it the ContentView
  98.             FW_kXYScrolling,            // scrolling direction
  99.             {                            // Start list of SubViews
  100.                 FW_REditView    // First name
  101.                 (
  102.                     kFirstNameEdViewID,                // view id
  103.                     { FW_FIX(290),FW_FIX(90),FW_FIX(450),FW_FIX(107)},
  104.                     FW_kFixedBounds,                // binding
  105.                     20,                                // max chars
  106.                     9,                                // attributes
  107.                     TIMES_12_BOLD,
  108.                     ""                                // initial text
  109.                 ),
  110.                 FW_REditView    // Last name
  111.                 (
  112.                     kFirstNameEdViewID + 1,            // view id
  113.                     { FW_FIX(290),FW_FIX(110),FW_FIX(450),FW_FIX(127)},
  114.                     FW_kFixedBounds,                // binding
  115.                     20,                                // max chars
  116.                     9,                                // attributes
  117.                     TIMES_12_BOLD,
  118.                     ""                                // initial text
  119.                 ),
  120.                 FW_REditView    // member name
  121.                 (
  122.                     kFirstNameEdViewID + 2,            // view id
  123.                     { FW_FIX(290),FW_FIX(130),FW_FIX(450),FW_FIX(147)},
  124.                     FW_kFixedBounds,                // binding
  125.                     20,                                // max chars
  126.                     9,                                // attributes
  127.                     TIMES_12_BOLD,
  128.                     ""                                // initial text
  129.                 ),
  130.                 FW_REditView    // e-mail address
  131.                 (
  132.                     kFirstNameEdViewID + 3,            // view id
  133.                     { FW_FIX(290),FW_FIX(150),FW_FIX(450),FW_FIX(167)},
  134.                     FW_kFixedBounds,                // binding
  135.                     30,                                // max chars
  136.                     9,                                // attributes
  137.                     TIMES_12_BOLD,
  138.                     ""                                // initial text
  139.                 ),
  140. /**                
  141.                 FW_RScrollBar    // Horizontal scrollbar for text-edit
  142.                 (
  143.                     kEditHScrollBarID,            // view id
  144.                     {FW_FIX(30), FW_FIX(289), FW_FIX(450), FW_FIX(305)},    // bounds 
  145.                     FW_kFixedBounds,            // view binding
  146.                     0,                            // control message
  147.                     0,                            // control receiver
  148.                     0,                            // control value
  149.                     0,                            // SB Min Value (adjusted at runtime)
  150.                     1,                            // SB Max Value (adjusted at runtime)
  151.                     FW_ONE,                        // SB Minor Units (adjusted at runtime)
  152.                     FW_ONE                        // SB Major Units (adjusted at runtime)
  153.                 ),
  154. **/
  155.                 FW_RScrollBar    // Vertical scrollbar for text-edit
  156.                 (
  157.                     kEditVScrollBarID,            // view id
  158.                     {FW_FIX(449), FW_FIX(200), FW_FIX(465), FW_FIX(290)},    // bounds 
  159.                     FW_kFixedBounds,            // view binding
  160.                     0,                            // control message
  161.                     0,                            // control receiver
  162.                     0,                            // control value
  163.                     0,                            // SB Min Value (adjusted at runtime)
  164.                     1,                            // SB Max Value (adjusted at runtime)
  165.                     FW_ONE,                        // SB Minor Units (adjusted at runtime)
  166.                     FW_ONE                        // SB Major Units (adjusted at runtime)
  167.                 ),
  168.                 RScrollEdit        // Comments (custom scrolling edit view)
  169.                 (
  170.                     kFirstNameEdViewID + 4,            // view id
  171.                     { FW_FIX(30),FW_FIX(200),FW_FIX(450),FW_FIX(290)},
  172.                     FW_kFixedBounds,                // binding
  173.                     -1,                                // max chars (32K)
  174.                     13,                                // attributes
  175.                     FW_NORMAL_FONT,
  176.                     "",                                // initial text
  177.                     0, // kEditHScrollBarID,        // Horizontal SB
  178.                     kEditVScrollBarID,                // Vertical SB
  179.                     FW_FIX(600)                        // text width (used only with horiz SB)
  180.                 ),
  181.                 FW_RButton
  182.                 (
  183.                     kSubscribeCheckID,                // view id
  184.                     { FW_FIX(30),FW_FIX(310),FW_FIX(200),FW_FIX(324)},
  185.                     FW_kFixedBounds,                // binding
  186.                     0,                                // control message
  187.                     0,                                // control receiver
  188.                     1,                                // control value
  189.                     FW_kCheckButton,                // button kind
  190.                     TIMES_12_BOLD,
  191.                     "Subscribe to ODFFlash"            
  192.                 ),
  193.                 RRadioGroup
  194.                 (
  195.                     kSpeedRadioGroupID,            // view id
  196.                     {FW_FIX(30),FW_FIX(360),FW_FIX(220),FW_FIX(440)},    // bounds
  197.                     FW_kFixedBounds,            // bindings
  198.                     {FW_FIX(190),FW_FIX(80)},    // extent
  199.                     0,                            // not contentView
  200.                     0,                            // no scrolling 
  201.                     {                            // List of SubViews for RRadioGroup
  202.                         FW_RGroupBox
  203.                         (
  204.                             0,                                // view id (not used)
  205.                             { FW_FIX(0),FW_FIX(0),FW_FIX(190),FW_FIX(80)},
  206.                             FW_kFixedBounds,                // binding
  207.                             TIMES_12_BOLD,
  208.                             "Modem speed used"
  209.                         ),
  210.                         FW_RButton
  211.                         (
  212.                             k14400RadioID,                    // view id
  213.                             { FW_FIX(10),FW_FIX(20),FW_FIX(180),FW_FIX(36)},
  214.                             FW_kFixedBounds,                // binding
  215.                             0,                                // control message
  216.                             0,                                // control receiver
  217.                             0,                                // control value
  218.                             FW_kRadioButton,                // button kind
  219.                             FW_SYSTEM_FONT,
  220.                             "14.4 Kbps or lower"            
  221.                         ),
  222.                         FW_RButton
  223.                         (
  224.                             k28800RadioID,                    // view id
  225.                             { FW_FIX(10),FW_FIX(40),FW_FIX(180),FW_FIX(56)},
  226.                             FW_kFixedBounds,                // binding
  227.                             0,                                // control message
  228.                             0,                                // control receiver
  229.                             1,                                // control value
  230.                             FW_kRadioButton,                // button kind
  231.                             FW_SYSTEM_FONT,
  232.                             "28.8 Kbps to 256 Kbps"            
  233.                         ),
  234.                         FW_RButton
  235.                         (
  236.                             kFasterRadioID,                    // view id
  237.                             { FW_FIX(10),FW_FIX(60),FW_FIX(180),FW_FIX(76)},
  238.                             FW_kFixedBounds,                // binding
  239.                             0,                                // control message
  240.                             0,                                // control receiver
  241.                             0,                                // control value
  242.                             FW_kRadioButton,                // button kind
  243.                             FW_SYSTEM_FONT,
  244.                             "Faster than 256 Kbps"            
  245.                         )
  246.                     },
  247.                     FW_RRadioCluster    
  248.                     (
  249.                         0,                                    // Dummy field
  250.                         { k14400RadioID, k28800RadioID, kFasterRadioID } // List of radios
  251.                     )
  252.                 ),
  253.                 FW_RListBox
  254.                 (
  255.                     kPlatformListBoxID,                // view id
  256.                     { FW_FIX(250),FW_FIX(362),FW_FIX(400),FW_FIX(440)},
  257.                     FW_kFixedBounds,                // binding
  258.                     10,                                // number of rows
  259.                     1,                                // vertical SB
  260.                     0,                                // single selection
  261.                     1,                                // use focus frame
  262.                     0,                                // use clientdata
  263.                     FW_kListBoxDoubleClickedMsg,    // DblClick message
  264.                     FW_HELVETICA12,                    // font
  265.                     {                                // List of strings
  266.                         "Mac OS",
  267.                         "OS/2 Warp",
  268.                         "Windows 95",
  269.                         "Windows NT",
  270.                         "IBM AIX",
  271.                         "Sun Sparc Solaris",
  272.                         "Sun OS 4.1.x",
  273.                         "HP /UX",
  274.                         "Unix IRIX",
  275.                         "Unix Linux"
  276.                     }
  277.                 ),
  278.                 FW_RButton
  279.                 (
  280.                     kAddButtonID,                    // view id
  281.                     { FW_FIX(410),FW_FIX(370),FW_FIX(480),FW_FIX(390)},
  282.                     FW_kFixedBounds,                // binding
  283.                     FW_kButtonPressedMsg,            // control message
  284.                     FW_kFrameReceiver,                // receiver
  285.                     0,                                // control value
  286.                     FW_kPushButton,                    // button kind
  287.                     FW_SYSTEM_FONT,
  288.                     "Add"            
  289.                 ),
  290.                 FW_RButton
  291.                 (
  292.                     kRemoveButtonID,                // view id
  293.                     { FW_FIX(410),FW_FIX(400),FW_FIX(480),FW_FIX(420)},
  294.                     FW_kFixedBounds,                // binding
  295.                     FW_kButtonPressedMsg,            // control message
  296.                     FW_kFrameReceiver,                // receiver
  297.                     0,                                // control value
  298.                     FW_kPushButton,                    // button kind
  299.                     FW_SYSTEM_FONT,
  300.                     "Remove"            
  301.                 ),
  302.                 FW_RPopupMenu
  303.                 (
  304.                     kBrowseTimePopupID,                // view id
  305.                     { FW_FIX(30),FW_FIX(477),FW_FIX(230),FW_FIX(497)},
  306.                     FW_kFixedBounds,                // binding
  307.                     FW_kPopupClickedMsg,            // control message
  308.                     FW_kFrameReceiver,                // control receiver
  309.                     0,                                // control value
  310.                     kBrowseTimeMenuResID,            // Mac menu id
  311.                     0,                                // title width
  312.                     2,                                // Initial menu item
  313.                     0,                                // Menu variation
  314.                     0,                                // Menu refCon    
  315.                     FW_SYSTEM_FONT,
  316.                     ""                                // title
  317.                 ),
  318.                 FW_RPopupMenu
  319.                 (
  320.                     kOnlineTimePopupID,                // view id
  321.                     { FW_FIX(30),FW_FIX(540),FW_FIX(230),FW_FIX(560)},
  322.                     FW_kFixedBounds,                // binding
  323.                     0,                                // control message
  324.                     0,                                // control receiver
  325.                     0,                                // control value
  326.                     kOnlineTimeMenuResID,            // Mac menu id
  327.                     0,                                // title width
  328.                     1,                                // Initial menu item
  329.                     0,                                // Menu variation
  330.                     0,                                // Menu refCon    
  331.                     FW_SYSTEM_FONT,
  332.                     ""                                // title
  333.                 ),
  334.                 RRadioGroup
  335.                 (
  336.                     kDiscoverRadioGroupID,            // view id
  337.                     {FW_FIX(30),FW_FIX(580),FW_FIX(350),FW_FIX(700)},    // bounds
  338.                     FW_kFixedBounds,            // bindings
  339.                     {FW_FIX(320),FW_FIX(120)},    // extent
  340.                     0,                            // not contentView
  341.                     0,                            // no scrolling 
  342.                     {
  343.                         FW_RGroupBox
  344.                         (
  345.                             0,                                // view id  (not used)
  346.                             { FW_FIX(0),FW_FIX(0),FW_FIX(320),FW_FIX(120)},
  347.                             FW_kFixedBounds,                // binding
  348.                             TIMES_12_BOLD,
  349.                             " How did you discover ODFWired?"            
  350.                         ),
  351.                         FW_RButton
  352.                         (
  353.                             kWorldMouthRadioID,                // view id
  354.                             { FW_FIX(10),FW_FIX(20),FW_FIX(270),FW_FIX(36)},
  355.                             FW_kFixedBounds,                // binding
  356.                             0,                                // control message
  357.                             0,                                // control receiver
  358.                             0,                                // control value
  359.                             FW_kRadioButton,                // button kind
  360.                             FW_SYSTEM_FONT,
  361.                             "Word of mouth"            
  362.                         ),
  363.                         FW_RButton
  364.                         (
  365.                             kHyperLinkRadioID,                // view id
  366.                             { FW_FIX(10),FW_FIX(40),FW_FIX(270),FW_FIX(56)},
  367.                             FW_kFixedBounds,                // binding
  368.                             0,                                // control message
  369.                             0,                                // control receiver
  370.                             0,                                // control value
  371.                             FW_kRadioButton,                // button kind
  372.                             FW_SYSTEM_FONT,
  373.                             "Hyperlink from another site:"            
  374.                         ),
  375.                         FW_RButton
  376.                         (
  377.                             kMacTechRadioID,                // view id
  378.                             { FW_FIX(10),FW_FIX(60),FW_FIX(270),FW_FIX(76)},
  379.                             FW_kFixedBounds,                // binding
  380.                             0,                                // control message
  381.                             0,                                // control receiver
  382.                             1,                                // control value
  383.                             FW_kRadioButton,                // button kind
  384.                             FW_SYSTEM_FONT,
  385.                             "Ad in MacTech Magazine"            
  386.                         ),
  387.                         FW_RButton
  388.                         (
  389.                             kMagazineRadioID,                // view id
  390.                             { FW_FIX(10),FW_FIX(80),FW_FIX(270),FW_FIX(96)},
  391.                             FW_kFixedBounds,                // binding
  392.                             0,                                // control message
  393.                             0,                                // control receiver
  394.                             0,                                // control value
  395.                             FW_kRadioButton,                // button kind
  396.                             FW_SYSTEM_FONT,
  397.                             "Other magazine, newspaper, radio"            
  398.                         ),
  399.                         FW_RButton
  400.                         (
  401.                             kOtherRadioID,                    // view id
  402.                             { FW_FIX(10),FW_FIX(100),FW_FIX(270),FW_FIX(116)},
  403.                             FW_kFixedBounds,                // binding
  404.                             0,                                // control message
  405.                             0,                                // control receiver
  406.                             0,                                // control value
  407.                             FW_kRadioButton,                // button kind
  408.                             FW_SYSTEM_FONT,
  409.                             "Other"            
  410.                         )
  411.                     },
  412.                     FW_RRadioCluster    
  413.                     (
  414.                         0,                                    // Dummy field
  415.                         { kWorldMouthRadioID, kHyperLinkRadioID, kMacTechRadioID,
  416.                             kMagazineRadioID, kOtherRadioID } // List of radios
  417.                     )
  418.                 )
  419.                 RRadioGroup   // this one doesn't have any GroupBox
  420.                 (
  421.                     kUsingODRadioGroupID,        // view id
  422.                     {FW_FIX(30),FW_FIX(725),FW_FIX(100),FW_FIX(760)},    // bounds
  423.                     FW_kFixedBounds,            // bindings
  424.                     {FW_FIX(320),FW_FIX(120)},    // extent
  425.                     0,                            // not contentView
  426.                     0,                            // no scrolling 
  427.                     {
  428.                         FW_RButton
  429.                         (
  430.                             kYesRadioID,                    // view id
  431.                             { FW_FIX(10),FW_FIX(0),FW_FIX(70),FW_FIX(15)},
  432.                             FW_kFixedBounds,                // binding
  433.                             0,                                // control message
  434.                             0,                                // control receiver
  435.                             0,                                // control value
  436.                             FW_kRadioButton,                // button kind
  437.                             FW_SYSTEM_FONT,
  438.                             "Yes"            
  439.                         ),
  440.                         FW_RButton
  441.                         (
  442.                             kNoRadioID,                        // view id
  443.                             { FW_FIX(10),FW_FIX(20),FW_FIX(70),FW_FIX(35)},
  444.                             FW_kFixedBounds,                // binding
  445.                             FW_kButtonPressedMsg,            // control message
  446.                             FW_kFrameReceiver,                // control receiver
  447.                             0,                                // control value
  448.                             FW_kRadioButton,                // button kind
  449.                             FW_SYSTEM_FONT,
  450.                             "No"            
  451.                         )
  452.                     },
  453.                     FW_RRadioCluster    
  454.                     (
  455.                         0,                                    // Dummy field
  456.                         { kYesRadioID, kNoRadioID }            // List of radios
  457.                     )
  458.                 )
  459.                 FW_RButton
  460.                 (
  461.                     kSubscribeButtonID,                // view id
  462.                     { FW_FIX(300),FW_FIX(750),FW_FIX(450),FW_FIX(775)},
  463.                     FW_kFixedBounds,                // binding
  464.                     FW_kButtonPressedMsg,            // control message
  465.                     FW_kFrameReceiver,                // receiver
  466.                     0,                                // control value
  467.                     FW_kPushButton,                    // button kind
  468.                     FW_SYSTEM_FONT,
  469.                     "Join ODFWired!"            
  470.                 )
  471.             }                            // End list of Subviews
  472.         ),                                // End RFormView resource
  473.         FW_RScrollBar        // Horizontal
  474.         (
  475.             kHorzScrollBarID,            // view id
  476.             {-FW_ONE, V - FW_SBSIZE, H1 - FW_SBSIZE, V1},    //  bounds 
  477.             FW_kHScrollBarBinding,        // Standard horizontal SB binding
  478.             0,                            // control message
  479.             0,                            // control receiver
  480.             0,                            // control value
  481.             0,                            // SB Min Value (adjusted at runtime)
  482.             1,                            // SB Max Value (adjusted at runtime)
  483.             FW_ONE,                        // SB Minor Units (adjusted at runtime)
  484.             FW_ONE                        // SB Major Units (adjusted at runtime)
  485.         ),
  486.         FW_RScrollBar        // Vertical
  487.         (
  488.             kVertScrollBarID,            // view id
  489.             {H - FW_SBSIZE, -FW_ONE, H1, V1 - FW_SBSIZE},    // bounds 
  490.             FW_kVScrollBarBinding,        // Standard vertical SB binding
  491.             0,                            // control message
  492.             0,                            // control receiver
  493.             0,                            // control value
  494.             0,                            // SB Min Value (adjusted at runtime)
  495.             1,                            // SB Max Value (adjusted at runtime)
  496.             FW_ONE,                        // SB Minor Units (adjusted at runtime)
  497.             FW_ONE                        // SB Major Units (adjusted at runtime)
  498.         ),
  499.         FW_RGrowBox
  500.         (
  501.             kGrowBoxID,                    // view Id
  502.             {H - FW_SBSIZE, V - FW_SBSIZE, H1, V1},        // bounds
  503.             FW_kGrowBoxBinding            // standard grow box binding
  504.         )
  505.     },                            // End list of frame's subviews
  506.     
  507.     {                        // Scroller
  508.         FW_RScrollBarScroller
  509.         (
  510.             0,                        // AutoScrollInset: not used here
  511.             {0, 0}                    // AutoScrollIncrement: 0 = no auto-scroll 
  512.             kHorzScrollBarID,        // Horizontal scroll-bar ID
  513.             kVertScrollBarID        // Vertical scroll-bar ID
  514.         ) 
  515.     }
  516. };
  517.  
  518. //========================================================================================
  519. // type RPwdEditView
  520. //========================================================================================
  521. // Custom edit view to type hidden passwords
  522.  
  523. type RPwdEditView : FW_REditView(Label='Pwdv')
  524. {
  525. };
  526.  
  527. //========================================================================================
  528. // resource FW_RFrameLayout(kPasswordDialog)
  529. //========================================================================================
  530. // See constants in "FWViews.k", macros & resource types in "FWViews.fr"
  531.  
  532. resource FW_RFrameLayout(kPasswordDialog)
  533. {
  534.     {FW_FIX(100),FW_FIX(100)},        // LayoutSize
  535.     
  536.     {                        // Start list of frame's subviews
  537.         FW_RStaticText
  538.         (
  539.             0,                            // view id
  540.             { FW_FIX(20),FW_FIX(40),FW_FIX(140),FW_FIX(60)},
  541.             FW_kFixedBounds,            // binding
  542.             FW_NORMAL_FONT, 
  543.             "Pick a password:"            
  544.         ),
  545.         FW_RStaticText 
  546.         (
  547.             0,                            // view id
  548.             { FW_FIX(20),FW_FIX(70),FW_FIX(140),FW_FIX(90)},
  549.             FW_kFixedBounds,            // binding
  550.             FW_NORMAL_FONT, 
  551.             "Retype to verify:"            
  552.         ),
  553.         RPwdEditView        // edit view to enter new password
  554.         (
  555.             kPasswordEditID,            // view id
  556.             { FW_FIX(150),FW_FIX(40),FW_FIX(280),FW_FIX(60)},
  557.             FW_kFixedBounds,            // binding
  558.             10,                            // max chars
  559.             9,                            // attributes
  560.             FW_NORMAL_FONT, 
  561.             ""                            // initial text
  562.         ), 
  563.         RPwdEditView        // edit view to confirm password
  564.         (
  565.             kConfirmEditID,                // view id
  566.             { FW_FIX(150),FW_FIX(70),FW_FIX(280),FW_FIX(90)},
  567.             FW_kFixedBounds,            // binding
  568.             10,                            // max chars
  569.             9,                            // attributes
  570.             FW_NORMAL_FONT, 
  571.             ""                            // initial text
  572.         ), 
  573.         FW_RButton
  574.         (
  575.             kOKButtonID,                // view id
  576.             { FW_FIX(180),FW_FIX(120),FW_FIX(260),FW_FIX(148)},
  577.             FW_kFixedBounds,            // binding
  578.             FW_kDefaultButtonMsg,        // "OK" message
  579.             0,                            // receiver = dialogFrame by default
  580.             0,                            // control value
  581.             FW_kDefaultPushButton,        // button kind (with outline)
  582.             FW_NORMAL_FONT,
  583.             "OK"            
  584.         ),
  585.         FW_RButton
  586.         (
  587.             kCancelButtonID,            // view id
  588.             { FW_FIX(60),FW_FIX(123),FW_FIX(120),FW_FIX(145)},
  589.             FW_kFixedBounds,            // binding
  590.             FW_kCancelButtonMsg,        // "Cancel" message
  591.             0,                            // receiver = dialogFrame by default
  592.             0,                            // control value
  593.             FW_kPushButton,                // button kind
  594.             FW_NORMAL_FONT,
  595.             "Cancel"            
  596.         )
  597.     },                        // End list of frame's subviews
  598.     { }                        // no scroller
  599. }; 
  600.